package com.eian.boot.common.enums;

import com.eian.boot.common.core.enums.IBaseEnum;
import lombok.Getter;

/**
 * 操作人类型枚举
 *
 * @author alex.meng
 * @createTime 2025-10-15
 */
@Getter
public enum OperatorTypeEnum implements IBaseEnum<Integer> {

    /**
     * 后台用户
     */
    MANAGE(1, "后台用户", "管理后台操作"),

    /**
     * 手机端用户
     */
    MOBILE(2, "手机端用户", "移动端操作"),

    /**
     * 其他
     */
    OTHER(3, "其他", "其他类型操作");

    private final Integer value;
    private final String label;
    private final String description;

    OperatorTypeEnum(Integer value, String label, String description) {
        this.value = value;
        this.label = label;
        this.description = description;
    }

    public static OperatorTypeEnum getByValue(Integer value) {
        return IBaseEnum.getByValue(OperatorTypeEnum.class, value);
    }

    public static OperatorTypeEnum getByLabel(String label) {
        return IBaseEnum.getByLabel(OperatorTypeEnum.class, label);
    }
}


